home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 54038 / 54038.xpi / chrome / script.js < prev    next >
Text File  |  2009-12-10  |  571b  |  15 lines

  1. StartRefChange = {
  2.  
  3. 1: function () {
  4.     xprefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("");
  5.     
  6.     if(xprefs.getIntPref("network.http.sendRefererHeader")=="0"){
  7.         xprefs.setIntPref("network.http.sendRefererHeader","2");
  8.         document.getElementById('btnstyle').image = "chrome://blockmyreferer/content/ref_btn_1.png";
  9.     }else{
  10.         xprefs.setIntPref("network.http.sendRefererHeader","0");
  11.         document.getElementById('btnstyle').image = "chrome://blockmyreferer/content/ref_btn_2.png";
  12.     }
  13. },
  14. }
  15.